<?php
/**
 * Skyline :: Foundational pattern framework
 * Copyright 2010-2011 Ian Unruh
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace Skyline\Reflection\Property;

/**
 * 
 * 
 * @author Ian Unruh <ianunruh@gmail.com>
 * @since Class avaliable since release 1.0
 */
interface AccessorInterface
{
	/**
	 * Returns the value of a property on a target object
	 * 
	 * @throws PropertyAccessException If propery cannot be retrieved
	 * @param object $target
	 * @param string $propertyName
	 * @return mixed
	 */
	public function getValue($target, $propertyName);
	
	/**
	 * Sets the value of a property on a target object
	 * 
	 * @throws PropertyAccessException If propery cannot be written to
	 * @param object $target
	 * @param string $propertyName
	 * @param mixed $value
	 * @return void
	 */
	public function setValue($target, $propertyName, $value);
}